Skip to content

Conversation

@woodruffw
Copy link
Member

This removes the SigningResult model, and replaces it with Bundle in APIs where a SigningResult was previously returned.

Closes #854.

Unblocks #860.

cc @laurentsimon for visibility 🙂

Signed-off-by: William Woodruff <william@trailofbits.com>
@woodruffw woodruffw added component:signing Core signing functionality component:api Public APIs labels Jan 12, 2024
@woodruffw woodruffw requested review from jku and tetsuo-cpp January 12, 2024 16:21
@woodruffw woodruffw self-assigned this Jan 12, 2024
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
if outputs["cert"] is not None:
with outputs["cert"].open(mode="w") as io:
print(result.cert_pem, file=io)
print(cert_pem, file=io)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information

This expression logs [sensitive data (certificate)](1) as clear text. This expression logs [sensitive data (certificate)](1) as clear text.
@woodruffw
Copy link
Member Author

This should be good to go -- the Bundle attributes are slightly different than the old SigningResult ones, but just about everything relevant is still present (the log entry UUIDs are gone, but these were only part of the Rekor REST API anyways).

@woodruffw woodruffw added this to the 3.0 milestone Jan 12, 2024
@woodruffw
Copy link
Member Author

(More generally, this makes me wonder if we can remove LogEntry too and just use the protobuf-specs TransparencyLogEntry. But that might be harder of a lift.)

Copy link
Contributor

@tetsuo-cpp tetsuo-cpp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tetsuo-cpp tetsuo-cpp merged commit 5d53e26 into main Jan 15, 2024
@tetsuo-cpp tetsuo-cpp deleted the ww/rm-signingresult branch January 15, 2024 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:api Public APIs component:signing Core signing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API: Remove SigningResult

3 participants